package com.carl.zlds.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author carl
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("game_account")
public class GameAccount {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("account")
    private String account;

    @TableField("level")
    private Integer level;

    @TableField("title")
    private String title;

    @TableField("price")
    private Integer price;

    @TableField("top_level")
    private Integer topLevel;

    @TableField("up")
    private Integer up;

    @TableField("game_tag_info_list")
    private String gameTagInfoList;

    @TableField("img")
    private String img;

    @TableField("hot")
    private Integer hot;

    @TableField("s1")
    private Integer s1;

    @TableField("s2")
    private Integer s2;

    @TableField("s3")
    private Integer s3;

    @TableField("status")
    private Integer status;

    @TableField("game_id")
    private Long gameId;

    @TableField("launch_time")
    private Date launchTime;

    @TableField("weight")
    private Integer weight;

    @TableField("create_time")
    private Date createTime;

    @TableField(value = "update_time", update = "now()")
    private Date updateTime;
}
